package com.rongc.client.freight.business.supply.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.base.request.result.NullResult;


/*
*  取消货源（货主）
* */

public class SupplyCancelApi extends AbsRequest<SupplyCancelApi.SupplyCancelParams, NullResult> {

    public SupplyCancelApi(SupplyCancelParams feedbackParams, Listener<NullResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getGoodsCancelUrl(), feedbackParams, listener, errorListener, NullResult.class);
    }

    public static class SupplyCancelParams extends BaseParams {

        public SupplyCancelParams(String goodsId) {
            put("goodsId",goodsId);
            put("userId", UniApplication.getInstance().getUserInfo().getUserId());
        }
    }


}
